- 
                Notifications
    You must be signed in to change notification settings 
- Fork 259
Extending the MTPNC status #4058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extends the MultiTenantPodNetworkConfig (MTPNC) CRD to include additional pod-related fields for better tracking and management. The changes add pod metadata to both the specification and status sections of the CRD.
- Adds PodUIDfield to the MTPNC spec for pod identification
- Adds NodeNamefield to the MTPNC status for tracking pod placement
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description | 
|---|---|
| crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml | Updates CRD manifest to include new podUID and nodeName fields | 
| crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go | Adds PodUID to spec struct and NodeName to status struct | 
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
        
          
                crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml
              
                Outdated
          
            Show resolved
            Hide resolved
        
      aafb373    to
    f7df550      
    Compare
  
    | /azp run Azure Container Networking PR | 
| Azure Pipelines successfully started running 1 pipeline(s). | 
Co-authored-by: Copilot <[email protected]> Signed-off-by: shreyashastantram <[email protected]>
…antpodnetworkconfigs.yaml Co-authored-by: Copilot <[email protected]> Signed-off-by: shreyashastantram <[email protected]>
f7df550    to
    dac3c5d      
    Compare
  
    | /azp run Azure Container Networking PR | 
| Azure Pipelines successfully started running 1 pipeline(s). | 
* Extending the MTPNC status * Adding generated crd * Adding to poduid to Spec * Adding crd changes * Update crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go Co-authored-by: Copilot <[email protected]> Signed-off-by: shreyashastantram <[email protected]> * Update crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml Co-authored-by: Copilot <[email protected]> Signed-off-by: shreyashastantram <[email protected]> --------- Signed-off-by: shreyashastantram <[email protected]> Co-authored-by: Copilot <[email protected]>
Reason for Change:
This PR focuses on extending the mtpnc spec and status fields to include the Pod UID in the spec and the Node name in the status.
Pod UID is added to the spec because controllers are aware of the pod’s unique identifier at the time of mtpnc creation.
Node name is added to the status because scheduling decisions do not depend on the node name parameter. The node name becomes available only after the scheduling decision has been made.
If Node name were part of the spec, it would act as an optional input from the creator of the mtpnc. This could lead to inconsistent states—for example, if the creator specifies a node name that differs from the actual node where the pod is scheduled.
Issue Fixed:
Requirements:
Notes: